Initializes a new instance of the Series2D class.
Namespace: MindFusion.Charting
File: Series2D.js
SyntaxJavaScript
Copy Code
|
|---|
function Series2D (xValues, yValues, labels) |
Type: List | Array
A list of X coordinates.
Type: List | Array
A list of Y coordinates.
Type: List | Array
A list of labels.
ExampleThe following code creates a new Series2D using arrays with values:
JavaScript
Copy Code
|
|---|
| var series = new Charting.Series2D([10, 20, 30, 40], [50, 40, 50, 5], ["Tomatoes", "Cucumbers", "Peppers", "Lettuce"]); series.title = "Traditional"; |
See Also